<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible"content="IE=8"><!--以IE8模式渲染-->
	<meta http-equiv="X-UA-Compatible"content="IE=7"><!--以IE7模式渲染-->
	<meta http-equiv="X-UA-Compatible"content="IE=9; IE=8; IE=7; IE=EDGE">
	<title>员工新增</title>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/easyui/demo.css">
	<script type="text/javascript" src="__PUBLIC__/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="__PUBLIC__/easyui/jquery.easyui.min.js"></script>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/js/jquery.alert.v1.2/jquery.alert.css"/>
	<link rel="stylesheet" type="text/css" href="__PUBLIC__/js/jquery_validate/css/validationEngine.jquery.css" >
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/css/form_table.css">
	<script type="text/javascript" src="__PUBLIC__/js/jquery_validate/js/jquery.validationEngine.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/jquery_validate/js/jquery.validationEngine-zh_CN.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/jquery.alert.v1.2/jquery.alert.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/customer/customer_edit.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
    <script type="text/javascript" src="__PUBLIC__/js/jquery_city/jquery.cityselect.js"></script>
</head>

<body>
<div id="tt">
    <ul class="tab">
        <li><a href="javascript:;" onclick="goto_basic('{$cust_array.cust_id}');">基本信息</a></li>
        <li><a href="javascript:;" onclick="goto_detail('{$cust_array.cust_id}');">详细信息</a></li>
        <li><a href="javascript:;" onclick="goto_work('{$cust_array.cust_id}');">工作信息</a></li>
        <li><a href="javascript:;" class="selected" >联系人信息</a></li>
    </ul>
    <div title="详细信息">
        <div style="width:98%" class="form-panel">
            <div  id="form-link">
                <div class="easyui-panel" style="padding:5px;border-width: 0px;border-bottom-width: 1px;">
                    <a href="javscript:;" class="easyui-linkbutton" onclick="update_ajax_cust('../../customer/customer/customer_update_links');" iconCls="icon-save" plain="true" style="width:80px">保存</a>
                    <a href="javscript:;" class="easyui-linkbutton" onclick="reset();" iconCls="icon-reload" plain="true" style="width:80px">重置</a>
                    <a href="javscript:;" class="easyui-linkbutton" onclick="close_tab();" iconCls="icon-undo" plain="true" style="width:80px">关闭</a>
                </div>
            </div>
            <div class="table_main">
                <form action="../../customer/customer/customer_update_base" id="defaultForm" method="post">
                    <input type="hidden" name="cust_id" value="{$cust_array.cust_id}">
                    <table width="100%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
                        <tr>
                            <th width="131">名称</th>
                            <th>内容</th>
                        </tr>
                        <tr>
                            <td width="131">第一联系人姓名：</td>
                            <td>
                                <input type="text" class="inpMain" name="first_linkman_name" placeholder="请输入联系人姓名" value="{$cust_array.first_linkman_name}"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="131">第一联系人关系：</td>
                            <td>
                                <select name="first_linkman_type" id="first_linkman_type">
                                    <option value="">请选择</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td width="131">第一联系人手机号码：</td>
                            <td>
                                <input type="text" class="inpMain" name="first_linkman_phone" placeholder="请输入联系人手机号码" value="{$cust_array.first_linkman_phone}"/>
                            </td>
                        </tr>
                        <tr id="linkman">
                            <td width="131">第一联系人地址省，市，区：</td>
                            <td>
                                <select name='first_linkman_province' class="prov"></select>
                                <select name='first_linkman_city' class="city"><option value="">请选择</option></select>
                                <select name='first_linkman_district' class="dist"><option value="">请选择</option></select>
                            </td>
                        </tr>
                        <tr>
                            <td width="131">第一联系人详细地址：</td>
                            <td>
                                <input type="text" class="inpMain" value="{$cust_array.first_linkman_address}" name="first_linkman_address" placeholder="请输入通讯地址" />
                            </td>
                        </tr>
                        <tr>
                            <td width="131">第二联系人姓名：</td>
                            <td>
                                <input type="text" class="inpMain" name="second_linkman_name" placeholder="请输入联系人" value="{$cust_array.second_linkman_name}"/>
                            </td>
                        </tr>
                        <tr>
                            <td width="131">第二联系人关系：</td>
                            <td>
                                <select name="second_linkman_type" id="second_linkman_type">
                                    <option value="">请选择</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <td width="131">第二联系人手机号码：</td>
                            <td><input type="text" class="inpMain" value="{$cust_array.second_linkman_phone}" name="second_linkman_phone" placeholder="请输入联系人号码" /></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
    </div>
</div>


	<script type="text/javascript">
		$(document).ready(function() {
            $("#first_linkman_type").commSelect({url:'../../Common/Common/relation_status',key:"r_id",value:"r_name",id:"{$cust_array.first_linkman_type}"});
            $("#second_linkman_type").commSelect({url:'../../Common/Common/relation_status',key:"r_id",value:"r_name",id:"{$cust_array.second_linkman_type}"});
		});

		$("#linkman").citySelect({required:false,prov:'{$cust_array.first_linkman_province}',city:'{$cust_array.first_linkman_city}',dist:'{$cust_array.first_linkman_district}'});

	</script>
</body>
</html>